package com.dy.nygl.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.dy.nygl.pojo.Device;

@Component("deviceDAO")
public interface DeviceMapper {
	public List<Device> getDevice();
	public int addDevice(@Param("device")Device device);
	public Device getDeviceById(@Param("id")int id);
	public Device getDeviceByNum(@Param("num")String num);
	public int getDeviceCount();
	
	public void updateDevice(@Param("device")Device device);
	public void deleteDevice(@Param("id")int id);
}
